<template>
  <div>
    <h1>恭喜支付成功，已成为尊贵的VIP用户</h1>
    <h1>请立即重新登陆体验开挂人生。</h1>
    <el-row>
      <el-button type="success" icon="el-icon-check" circle class="btn" @click="fn"></el-button>
    </el-row>
  </div>
</template>
<script>
   export default {
       data(){
           return {

           }
       },
       methods:{
           fn(){
            //退出登陆，清除token，跳转到login
            localStorage.removeItem("qf-token")
            this.$router.push("/login")
            //刷新页面清除缓存
            location.reload()
           }
       }
   }
</script>
<style scoped lang="less">
h1 {
  color: red;
  text-align: center;
  margin-top: 100px;
  font-size:40px;
}
.btn{
    margin-top: 50px;
    height:100px;
    width:100px;
}
</style>
